<?
	include($_SERVER['DOCUMENT_ROOT'].'/admin/template.php');
?>
<h2>Men&uuml;plan hochladen</h2>
<?
	$link = getDbLink();
	$restId = $_POST["rest_id"];
	$week = $_POST["week"];
	
	$query = sprintf("select name from restaurants where id = %d", $restId);
	$rv = mysql_fetch_array(mysql_query($query, $link));

?>
<b>Restaurant:</b> <?=$rv["name"];?> <br>
<b>Woche:</b> <?= $week ?> <br>
<b>Zeitraum:</b> <?= getFirstAndLastDayOfWeek($week); ?> <br>
<br/>
<b>Datei hochladen:</b>
<form method = "post" action = "/admin/file_handling.php" enctype = "multipart/form-data">
<input type = "file" name = "file" >
<input name = "restaurantId" type = "hidden" value = "<?= $restId; ?>">
<input name = "weekNr" type = "hidden" value = "<?= $week; ?>">
<input type = "hidden" name = "action" value = "toDocumentHandling">
<input type = "submit" value = "Hochladen">
</form>